  <script language="javascript" >
function check_frm2()
{
	r_form = document.frm_faq;
		if(r_form.re_name.value=='') {
			document.getElementById("id_re_name").innerHTML = "Bạn chưa nhập Họ tên !";
			r_form.re_name.focus();
			return false;
		}
		if (r_form.re_email.value.indexOf("@")<0 || r_form.re_email.value.indexOf(".")<0) {
			document.getElementById("id_re_email").innerHTML = "Bạn chưa nhập Email !";
			r_form.re_email.focus();
			return false;
		}

		if(r_form.re_title.value=='') {
			document.getElementById("id_re_title").innerHTML = "Bạn chưa nhập chủ đề !";
			r_form.re_title.focus();
			return false;
		}
		if(r_form.re_content.value=='') {
			document.getElementById("id_re_content").innerHTML = "Bạn chưa nhập nội dung liên hệ!";
			r_form.re_content.focus();
			return false;
		}

		return true;
}
</script>
    
		

<!--begin left-->
 <? include_once("templates/left.html");?>
 <!-- end left-->
 <!-- begin content-->
<div id="content">
					
    
    <div class="top">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center">
    <h1> Liên hệ báo giá</h1>
  </div>
</div>

<div class="middle">
 <table width="100%"  border="0" cellpadding="0" cellspacing="0" >
                        <tr>
											<td >
											<?=$detail?>
					   			<?=$html?>	
											</td>
										  </tr>
						<tr><td>&nbsp;</td></tr>
						<tr><td > 
						<div class="center_title_bar">&nbsp;&nbsp;&nbsp;&nbsp;Liên hệ báo giá</div>	
						<table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:Tahoma; font-size:12px; "> 
								       
							<form action="<?=$action?>" method="post" name="frm_faq" onsubmit="return check_frm2();" >	
							
								
										
										  <tr>
											<td class="textcontent" align="right">S&#7889; lượng </td>
											<td>&nbsp;</td>
											<td><input type="text" name="txtsl" value="<?=$txtsl_?>" onblur=\'document.getElementById("id_txtsl").innerHTML="";\' class="textbox"></td>
										  </tr>
										  <tr>
											<td class="textcontent" align="right">Họ và tên <font color="#FF0000" size="2">(*)</font></td>
											<td>&nbsp;</td>
											<td align="left"><input type="text" name="re_name" size="45" value="<?=$fullname?>"  onblur=\'document.getElementById("id_re_name").innerHTML="";\'  class="textbox"/></td>
										  </tr>
											<tr><td></td><td colspan="3" id="id_re_name" class="alert"></td></tr>							  
										  <tr>
											<td class="textcontent"><div align="right">Email <font color="#FF0000" size="2">(*)</font></div></td>
											<td>&nbsp;</td>
											<td  align="left"><input type="text" name="re_email" size="45" value="<?=$email?>" onblur=\'document.getElementById("id_re_email").innerHTML="";\' class="textbox"/></td>
										  </tr>
											<tr><td></td><td colspan="3" id="id_re_email" class="alert"></td></tr>								  
										  <tr>
											<td class="textcontent" align="right">Điện thoại <div align="right"></div></td>
											<td>&nbsp;</td>
											<td  align="left"><input type="text" name="re_tel" size="45" value="<?=$tel?>" class="textbox"/></td>
										  </tr>
															  
										  <tr>
											<td class="textcontent" align="right">Địa chỉ</td>
											<td>&nbsp;</td>
											<td  align="left"><input type="text" name="re_address" value="<?=$address?>" size="45" style="width:320px; " class="textbox"/></td>
										  </tr>
										  <tr>
											<td width="23%"> <div align="right"><font class="textcontent">
											Tiêu đề<span class="textcontent"> <font color="#FF0000" size="2">(*)</font></span>
											</font></div></td>
											<td width="2%">&nbsp;</td>
											<td width="75%"  align="left"><input type="text" name="re_title" size="45" style="width:320px; " class="textbox" value="LIÊN HỆ BÁO GIÁ"></td>
										 </tr>
											<tr><td></td><td colspan="3" id="id_re_title" class="alert"></td></tr>								  
									  
										  <tr>
											<td height="142"> <div align="right"><font class="textcontent">
											Nội dung <font color="#FF0000" size="2">(*)</font>
											</font></div></td>
											<td>&nbsp;</td>
											<td  align="left"><textarea style="background-color:#FFFFFF;width:350px " name="re_content"  cols="50" rows="12" onblur=\'document.getElementById("id_re_content").innerHTML="";\' ></textarea></td>
										  </tr>
										<tr><td></td><td colspan="3" id="id_re_content" class="alert"></td></tr>							  
										 <tr><td height="37">&nbsp;</td>
										 <td>&nbsp;</td>
										   <td><input type="submit" name="re_send"  value=" Gửi đi " onclick="return check_frm2();" style=" color:#FFFFFF; background-color:#2f66a7;border:none;  font-weight:bold; font-family:Tahoma;" />
                                 <input type="reset" name="re_send2"  value=" Làm lại " style="border:none; background:RED; color:#FFFFFF; font-weight:bold; font-family:Tahoma;"  />
								 </td></tr>
							</form>			  
					  </table>	</td></tr>
                      </table>
</div>

<div class="bottom">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center"></div>
</div>

 
    

<!--end content-->
    
 